
<!DOCTYPE html>
<html >
<head>
<!--{template "wap_header"}-->
<link rel="stylesheet" href="templates/mobile/style/cp_style20140312.css" />
<!--{~ui('loader')->js('@jquery')}-->

<script type="text/javascript" src="templates/mobile/js/common20130910.js"></script>
<script src="templates/mobile/js/category-20140307.js"></script>
</head>
<body id="index">
<header class="index">
<!-- <h1 id="logo"><a gaevent="InnerLink|Click|touch/logo" href="">{ini:settings.site_name}</a></h1> -->
                    <a class="city" id="city" gaevent="InnerLink|Click|touch/city/cityBottom" href="?code=city">{~logic('misc')->City('name')}</a>
                    <div class="brand" style="height: 100%;margin: 0 110px;text-align:center;">
                    <h1>{ini:settings.site_name}</h1> 
					</div>
                    <div id="nav">
                        <a class="account" gaevent="InnerLink|Click|touch/account" href="?mod=me">会员中心</a>
                       <!--  <a class="search" gaevent="InnerLink|Click|touch/search" href="?mod=search">搜索</a> -->
                    </div>
 </header>
  <style type="text/css">
 
 /* 图片调用 */
header .logo,header nav ul li a,.sift_module ul a span,.popup_inner .close_module,.download_banner .db_close,.search_module input[type="search"],.search_module .delete_search{background:url(templates/mobile/images/big_icons116221.png) no-repeat;background-size: 320px auto;}

/* sift 
.sift_module{border-bottom: 1px solid #ccc;background-color: #efefef;}
.sift_module ul{overflow: hidden;}
.sift_module ul li{width: 33.333%;float: left;display: inline;}
.sift_module ul a{display: block;height: 38px;line-height: 38px;border-left:1px solid #ccc;color: #4d4d4d;text-align: center;}
.sift_module ul li:first-child a{border: none;}
.sift_module ul a span{display: inline-block;padding-left: 26px;}
.sift_module ul a .sift_classify{background-position: -296px -20px;}
.sift_module ul a .sift_area{background-position: -296px -52px;}
.sift_module ul a .sift_sort{background-position: -296px 11px;}
*/
/* mask layer && popup layer 
.mask_layer{display:none;width: 100%;height: 100%;background-color: #000;opacity: 0.5;position: absolute;z-index: 99;top:90px;right: 0;}
.popup_box{display:none;width: 270px;background-color: #fff;border-radius: 4px;position: absolute;z-index: 999;top:140px;left: 50%;margin-left: -135px;box-shadow: 0 0 8px 0 #555;}
.popup_inner{position: relative;}
.popup_inner .close_module{width: 32px;height: 32px;background-position:-200px 0;position: absolute;top:-15px;right: -15px;cursor: pointer;text-indent: -99em;overflow: hidden;}
.popup_inner .sift_list{padding: 3px 0;}
.popup_inner .sift_list li a{display: block;height: 42px;border-top:1px dashed #dedede;font:14px/42px serif;color: #a0a0a0;text-align: center;}
.popup_inner .sift_list li:first-child a{border: none;}
.popup_inner .sift_list li a:hover{border-radius: 0;color:#4e4e4e;}
.popup_inner .sift_list li:hover{background-color: #fafafa;box-shadow: inset 0 2px 1px 0 #eaeaea;}
*/
h1, h2, h3, h4, div, li, p, menu, dl, dt, dd {
margin: 0;
padding: 0;
font-size: 100%;
font-weight: normal;
-webkit-tap-highlight-color: transparent;
}

 </style>  
 <!-- 搜索框 -->
<div class="searchbox cf">
			<div style="float: right;margin-right: 0px;"><input type="button" class="search-submit" onclick="front_search_request()" /></div>
			<div class="search-left" style="margin-right:50;">
				<input name="q" type="text" class="inputsearch search-box__input" id="search-txt" value="{$kw}" maxlength="26" autocomplete="off" style="color: rgb(204, 204, 204);" onkeyup="if (event.keyCode == 13) front_search_request();" />
			</div>
		</div>
<script type="text/javascript">
var front_search_base = "{echo logic('url')->wap_create('search', array('mod'=>'search','kw' => 'xqw'))}";
function front_search_request()
{
window.location = front_search_base.replace('xqw', encodeURIComponent($('#search-txt').val()));
}
</script>
<div style="display: none;">搜索框</div> 
 
  <!-- 搜索框 -->

<div class="content" id='content'>
 	<div class="search-asslist" style="display: none">
			<ul id='search_history_ul'>
			</ul>
		</div>
 	
	<div class="mall-cate-box">
	<ul class="mall-cate">
		<li >
			<a href="javascript:void(0);" id="show_categories" class="cate21">
				全部分类<em></em>
			</a>
		</li>
					<li>
				<a href="javascript:void(0);" id="show_district" class="cate31">
					全部地区<em></em>
				</a>
			</li>
				<li  style="width:34%">
			<a href="javascript:void(0);" id="show_sort" class="cate41">
				默认排序<em></em>
			</a>
		</li>
	</ul>
	</div>

	
<!-- 点击菜单遮罩 -->
<div id="fullbg" style="width:100%;height: 100%;display:none; top:0; z-index:10001;-webkit-user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-transform:translate3d(0,0,0);">
	<i class="pull"></i>
</div>
<!-- 点击菜单遮罩结束 -->
<!-- 菜单头部 结束 -->
<!-- 分类信息 -->
<!--{~ui('catalog')->wap_display()}-->

<!-- 分类信息 --><!-- 商圈信息 -->
<!--{~logic('city')->wap_place_navigate()}-->

<!-- 商圈信息结束-->	
<!-- 排序 -->
<!--{~logic('sort')->wap_product_navigate()}-->
<!-- 排序结束 --><!-- 固定园圈快捷方式 -->

<!-- 排序结束 --><!-- 固定园圈快捷方式 -->
<!-- <div class="lsplus">
	<div class="circle" >
		<ul >
						<li class="tp-freeres"><a href="?mod=me&code=coupon"><i></i>我的团购券</a></li>
						<li class="tp-myls"><a href="?mod=me&code=order"><i></i>我的订单</a></li>
						<li class="tp-mysc"><a href="?mod=me&code=bill"><i></i>消费详单</a></li>
						<li class="tp-myhd tp-none"><a href="index.php?mod=wap"><i></i>验证消费</a></li>
		</ul>
		<i class="iconjt"></i> 
	</div>
	<div class="plusbtn"  onclick="_hmt.push(['_trackEvent', 'indexCircle', 'click', 'indexCircle']);" > 
		<i class=""></i>
	</div>
	
</div> -->

<div id="fullbg_f" style="width:100%;height: 100%;display:none; top:0; z-index:10003;-webkit-user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-transform:translate3d(0,0,0);"></div>
<!-- 固定园圈快捷方式结束 -->
<!--banner-->
<!--banner end-->
<script type="text/javascript">
var __Timer_lesser_auto_accuracy = {echo ini('ui.igos.litetimer') ? 'true' : 'false'};
var __Timer_lesser_worker_max = {echo (int)ini('ui.igos.litetimer_wm')};
</script>	
<!--{~ui('loader')->js('@time.lesser')}-->	
<!-- 产品列表开始 -->
 <div class="v3">

 
 <ul class="common-item">
 {loop $product $k $item}
 	 <li>
		<a href="wap.php?view={$item['id']}">
		<div class="pic">
		
		<img class="lazy" {echo 'sr'.'c="'.ini('settings.site_url').'/static/images/1x1.gif"'} data-original="{echo imager($item['imgs'][0], IMG_Small);}" width="110" height="72"/>	
		 
		</div>
		<div class="item-name">
		<div class="item-ico">
		<span class="icon-ticket"></span>
		</div>
		<h2>{$item['name']}</h2>
		<h3>{eval echo strip_tags($item['intro'])}</h3>
		<div class="item-edit">
		<p class="price"><b>￥{$item['nowprice']}</b><del>￥{$item['price']}</del></p>
		<p class="num"><span></span>{$item['succ_buyers']}</p>
		</div>
		</div>
		</a>
	</li>
	{/loop}
 </ul>
 
 
 </div>
 {~ui('loader')->js('@jquery.lazyload')}
<script type="text/javascript">
$("img.lazy").lazyload({effect:'fadeIn',skip_invisible:false});
</script>
 <!-- 产品列表结束 -->
 <div class="pagebox">
<div class="product_list_pager"> {~page_moyo()}</div>
<!--  <a href="javascript:scroll(0,0)" class="btn-goup"><span></span>回到顶部</a>  -->
</div>
 
 
</div>
<!--{if ( handler('cookie')->getVar('mycity') == '' )}-->
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=7srQsDLP8QRXIjMEYVkPGI6n"></script>
<script type="text/javascript">
$(document).ready(function(){
	// 百度地图API功能
	var map = new BMap.Map("allmap");
	var gc = new BMap.Geocoder();  
	var geolocation = new BMap.Geolocation();
	geolocation.getCurrentPosition(function(r){
	    if(this.getStatus() == BMAP_STATUS_SUCCESS){
	
			var pt = r.point;
			gc.getLocation(pt, function(rs){
		        var addComp = rs.addressComponents;
		        var city = addComp.city.replace("市","");        
		        $.get('wap.php?code=getLocation&city='+city+$.rnd.stamp(), function(data){
		        	$("#city").text(data);
		        });
	        //alert(addComp.province + ", " + addComp.city + ", " + addComp.district + ", " + addComp.street + ", " + addComp.streetNumber);
	    	});  
	
	    }
	    else {
	    	 $.get('wap.php?code=getLocation&nocity=1'+$.rnd.stamp(), function(data){
	         	$("#city").text(data);
	         });
	    }        
	},{enableHighAccuracy: true,timeout:5000,maximumAge:30000});
	setTimeout(function(){
		if(typeof(geolocation.getStatus())=='undefined'){
			$.get('wap.php?code=getLocation&nocity=1'+$.rnd.stamp(), function(data){
	         	$("#city").text(data);
	         });
		}
		 
		 
		},6000);
}); 
</script>
<!--{/if}-->
<!--{template "wap_footer"}-->


</body>
</html>